<?php
include_once 'Database.class.php';

class RegeDB {
    // Store the single instance of Database
    private static $regeDb;

    private function __construct() {}

    public static function getInstance(){
        
        if ( !self::$regeDb ){
            self::$regeDb = new Database( 'localhost', 'root', '', 'parserdb', '' );
            self::$regeDb->connect();
        }

        return self::$regeDb;
    } 
    
}
?>